package com.myway.dto.ticket;

import com.myway.dto.order.DTOSegment;
import com.myway.dto.order.domain.OrderStatus;
import com.myway.dto.payment.DTOPayment;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * @类名称：DTOFltChange 
 * @类描述：TODO 航班变更
 * @创建时间：2015年10月30日 下午5:18:37 
 * @author Jiang.Yida
 * @version V1.0
 */
public class DTOFltChange implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2267334533377630066L;
	private Long id;
	private Long orderId;
	private String orderNo;//主订单号
	private String changeNo;
	private String userName;
	private Date createTime;
	private OrderStatus status;
	
	private String source;// 来源
	
	private String fltChangeType;
	
	private Long userId; //  用户id
	/**
	 * 变更中所增加的航段

	 */
	private List<DTOSegment> newSegmentList = new ArrayList<DTOSegment>();
	
	private List<DTOFltChangePaxSeg> fltChangePaxSegList = new ArrayList<DTOFltChangePaxSeg>();
	
	private List<DTOPayment> payments=new ArrayList<DTOPayment>();

	public DTOFltChange(){

	}
	
	public DTOFltChange(Long orderId, String userName) {
		this.orderId = orderId;
		this.userName = userName;
		this.createTime = new Date();
		this.status = OrderStatus.WP;
	}

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
	}

	public Long getId(){
		return id;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setId(Long newVal){
		id = newVal;
	}
	
	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getChangeNo(){
		return changeNo;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setChangeNo(String newVal){
		changeNo = newVal;
	}
	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime(){
		return createTime;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setCreateTime(Date newVal){
		createTime = newVal;
	}


	/**
	 * @return the status
	 */
	public OrderStatus getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(OrderStatus status) {
		this.status = status;
	}

	public List<DTOSegment> getNewSegmentList() {
		return newSegmentList;
	}

	public void setNewSegmentList(List<DTOSegment> newSegmentList) {
		this.newSegmentList = newSegmentList;
	}
	
	public List<DTOFltChangePaxSeg> getFltChangePaxSegList(){
		return fltChangePaxSegList;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setFltChangePaxSegList(List<DTOFltChangePaxSeg> newVal){
		fltChangePaxSegList = newVal;
	}

	/**
	 * @return the payments
	 */
	public List<DTOPayment> getPayments() {
		return this.payments;
	}

	/**
	 * @param payments the payments to set
	 */
	public void setPayments(List<DTOPayment> payments) {
		this.payments = payments;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getFltChangeType() {
		return fltChangeType;
	}

	public void setFltChangeType(String fltChangeType) {
		this.fltChangeType = fltChangeType;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}


}